package com.example.demo1.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created with IntelliJ IDEA
 * Description
 * User：chenshu
 * Date：2023-12-20
 * Time：22:29
 */
@Controller
public class Forward {
    @RequestMapping("/forward")
    public String forward() {
        return "forward:/index.html";
    }
    @RequestMapping("/redirect")
    public String redirect() {
        return "redirect:/index.html";
    }
}
